package com.bjut.vendormgrsys.model.repository;

import com.bjut.vendormgrsys.model.domain.UserPO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface UserRepository extends JpaRepository<UserPO, String>, JpaSpecificationExecutor<UserPO> {

    UserPO getUserPOByAccount(String account);

    UserPO getUserPOById(String id);

    List<UserPO> findAllByRole(String role);

}
